{extend name="Public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>扩展列表</h2>
		</div>
		<div class="pull-right">
			<a href="{:U('UserExtends/create')}" class="btn btn-primary pull-right"> <i class="fa fa-plus-circle fa-lg"></i>
				新增扩展
			</a>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive">
			<table class="table user-list table-hover">
				<thead>
					<tr>
						<th>
							<span>ID</span>
						</th>
						<th>
							<span>扩展表</span>
						</th>
						<th>
							<span>扩展分组名</span>
						</th>
						<th>
							<span>是否可见</span>
						</th>
						<th>
							<span>排序</span>
						</th>
						<th class="text-center">
							<span>状态</span>
						</th>
						<th>
							<span>创建时间</span>
						</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="_list" id="item"}
					<tr>
						<td>
							<span>{$item['id']}</span>
						</td>
						<td>
							<span >{$item['name']}</span>
						</td>
						<td>{$item['profile_name']}</td>
						<td>
							{if condition="$item['visiable']"}
							<span class="label label-primary">可见</span>
							{else/}
							<span class="label label-danger">隐藏</span>
							{/if}
						</td>
						<td>
							<span >{$item['sort']}</span>
						</td>
						<td class="text-center">
							{if condition="$item['status']"}
							<span class="label label-primary">启用</span>
							{else/}
							<span class="label label-danger">禁用</span>
							{/if}
						</td>
						<td>
							<span >{$item['create_time']|time_format}</span>
						</td>
						<td>
							<a href="{:U('UserExtends/fields',array('id'=>$item['id']))}" class="table-link" title="">
								字段
							</a>
							<a href="{:U('UserExtends/edit',array('id'=>$item['id']))}" class="table-link" title="">
								编辑
							</a>
							<a href="{:U('UserExtends/del',array('id'=>$item['id']))}" class="table-link confirm ajax-get">
								删除
							</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			{$_page}
		</div>
	</div>
</div>
{/block}